<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">

    <ui:composition template="layout.xhtml">
        <ui:define name="body">

            <h:form id="form" enctype="multipart/form-data">

                <h2 class="title">Relatório Boletim Diário de Arrecadação Resumido</h2>

                <p:growl id="messages" showDetail="false" autoUpdate="true"  /> 
                <br/>

                <p:panel id="fatorPanel" styleClass="container_24 clearfix withoutBorder">

                    <h4 class="title">Parâmetros</h4>

                    <p:outputLabel value="Data Início: " styleClass="grid_3" for="dataIniCalendar" />
                    <p:calendar id="dataIniCalendar" value="#{managerPesquisarPrefeitura.dataIni}" showOn="both" 
                                locale="pt" navigator="true" pattern="dd/MM/yyyy" styleClass="grid_8" />

                    <p:outputLabel value="Data Fim: " styleClass="grid_3" for="dataFimCalendar" />
                    <p:calendar id="dataFimCalendar" value="#{managerPesquisarPrefeitura.dataFim}" showOn="both" 
                                locale="pt" navigator="true" pattern="dd/MM/yyyy" styleClass="grid_8" />

                    <br/><br/>
                    <div class="buttonAction">
                        <p:commandButton value="Imprimir"
                                         actionListener="#{managerPesquisarPrefeitura.pesquisarRelatorio()}"
                                         update="@form"
                                         icon="ui-icon-check"/>
                        <p:commandButton style="display: none;" widgetVar="imprimirRel"
                                         actionListener="#{managerPesquisarPrefeitura.exibirRelatorio()}"
                                         update="@form" ajax="false"
                                         onclick="this.form.target='_blank'"
                                         icon="ui-icon-check"/>
                    </div>
                </p:panel>

            </h:form>
        </ui:define>
    </ui:composition>
</html>
